Optimal. Leaf size=80 \[ \frac {a^3 \tanh (c+d x)}{d}-\frac {a^2 (a-b) \tanh ^3(c+d x)}{d}+\frac {3 a (a-b)^2 \tanh ^5(c+d x)}{5 d}-\frac {(a-b)^3 \tanh ^7(c+d x)}{7 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 80, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {3270, 200}
\begin {gather*} \frac {a^3 \tanh (c+d x)}{d}-\frac {a^2 (a-b) \tanh ^3(c+d x)}{d}-\frac {(a-b)^3 \tanh ^7(c+d x)}{7 d}+\frac {3 a (a-b)^2 \tanh ^5(c+d x)}{5 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 200
Rule 3270
Rubi steps
\begin {align*} \int \text {sech}^8(c+d x) \left (a+b \sinh ^2(c+d x)\right )^3 \, dx &=\frac {\text {Subst}\left (\int \left (a-(a-b) x^2\right )^3 \, dx,x,\tanh (c+d x)\right )}{d}\\ &=\frac {\text {Subst}\left (\int \left (a^3-3 a^2 (a-b) x^2+3 a (a-b)^2 x^4-(a-b)^3 x^6\right ) \, dx,x,\tanh (c+d x)\right )}{d}\\ &=\frac {a^3 \tanh (c+d x)}{d}-\frac {a^2 (a-b) \tanh ^3(c+d x)}{d}+\frac {3 a (a-b)^2 \tanh ^5(c+d x)}{5 d}-\frac {(a-b)^3 \tanh ^7(c+d x)}{7 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(163\) vs. \(2(80)=160\).
time = 0.60, size = 163, normalized size = 2.04 \begin {gather*} \frac {\left (512 a^3-304 a^2 b+192 a b^2-50 b^3+\left (464 a^3+232 a^2 b-246 a b^2+75 b^3\right ) \cosh (2 (c+d x))+2 \left (64 a^3+32 a^2 b+24 a b^2-15 b^3\right ) \cosh (4 (c+d x))+16 a^3 \cosh (6 (c+d x))+8 a^2 b \cosh (6 (c+d x))+6 a b^2 \cosh (6 (c+d x))+5 b^3 \cosh (6 (c+d x))\right ) \text {sech}^6(c+d x) \tanh (c+d x)}{1120 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(260\) vs.
\(2(76)=152\).
time = 1.76, size = 261, normalized size = 3.26
method | result | size |
risch | \(-\frac {2 \left (35 b^{3} {\mathrm e}^{12 d x +12 c}+210 a \,b^{2} {\mathrm e}^{10 d x +10 c}+560 a^{2} b \,{\mathrm e}^{8 d x +8 c}-210 a \,b^{2} {\mathrm e}^{8 d x +8 c}+175 b^{3} {\mathrm e}^{8 d x +8 c}+560 a^{3} {\mathrm e}^{6 d x +6 c}-280 a^{2} b \,{\mathrm e}^{6 d x +6 c}+420 a \,b^{2} {\mathrm e}^{6 d x +6 c}+336 a^{3} {\mathrm e}^{4 d x +4 c}+168 a^{2} b \,{\mathrm e}^{4 d x +4 c}-84 a \,b^{2} {\mathrm e}^{4 d x +4 c}+105 b^{3} {\mathrm e}^{4 d x +4 c}+112 a^{3} {\mathrm e}^{2 d x +2 c}+56 a^{2} b \,{\mathrm e}^{2 d x +2 c}+42 a \,b^{2} {\mathrm e}^{2 d x +2 c}+16 a^{3}+8 a^{2} b +6 a \,b^{2}+5 b^{3}\right )}{35 d \left (1+{\mathrm e}^{2 d x +2 c}\right )^{7}}\) | \(261\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 1754 vs.
\(2 (76) = 152\).
time = 0.30, size = 1754, normalized size = 21.92 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 814 vs.
\(2 (76) = 152\).
time = 0.54, size = 814, normalized size = 10.18 \begin {gather*} -\frac {4 \, {\left ({\left (8 \, a^{3} + 4 \, a^{2} b + 3 \, a b^{2} + 20 \, b^{3}\right )} \cosh \left (d x + c\right )^{6} - 6 \, {\left (8 \, a^{3} + 4 \, a^{2} b + 3 \, a b^{2} - 15 \, b^{3}\right )} \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{5} + {\left (8 \, a^{3} + 4 \, a^{2} b + 3 \, a b^{2} + 20 \, b^{3}\right )} \sinh \left (d x + c\right )^{6} + 14 \, {\left (4 \, a^{3} + 2 \, a^{2} b + 9 \, a b^{2}\right )} \cosh \left (d x + c\right )^{4} + {\left (56 \, a^{3} + 28 \, a^{2} b + 126 \, a b^{2} + 15 \, {\left (8 \, a^{3} + 4 \, a^{2} b + 3 \, a b^{2} + 20 \, b^{3}\right )} \cosh \left (d x + c\right )^{2}\right )} \sinh \left (d x + c\right )^{4} - 4 \, {\left (5 \, {\left (8 \, a^{3} + 4 \, a^{2} b + 3 \, a b^{2} - 15 \, b^{3}\right )} \cosh \left (d x + c\right )^{3} + 28 \, {\left (2 \, a^{3} + a^{2} b - 3 \, a b^{2}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{3} + 280 \, a^{3} - 140 \, a^{2} b + 210 \, a b^{2} + 7 \, {\left (24 \, a^{3} + 52 \, a^{2} b - 21 \, a b^{2} + 20 \, b^{3}\right )} \cosh \left (d x + c\right )^{2} + {\left (15 \, {\left (8 \, a^{3} + 4 \, a^{2} b + 3 \, a b^{2} + 20 \, b^{3}\right )} \cosh \left (d x + c\right )^{4} + 168 \, a^{3} + 364 \, a^{2} b - 147 \, a b^{2} + 140 \, b^{3} + 84 \, {\left (4 \, a^{3} + 2 \, a^{2} b + 9 \, a b^{2}\right )} \cosh \left (d x + c\right )^{2}\right )} \sinh \left (d x + c\right )^{2} - 2 \, {\left (3 \, {\left (8 \, a^{3} + 4 \, a^{2} b + 3 \, a b^{2} - 15 \, b^{3}\right )} \cosh \left (d x + c\right )^{5} + 56 \, {\left (2 \, a^{3} + a^{2} b - 3 \, a b^{2}\right )} \cosh \left (d x + c\right )^{3} + 7 \, {\left (24 \, a^{3} - 28 \, a^{2} b + 9 \, a b^{2} - 5 \, b^{3}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )\right )}}{35 \, {\left (d \cosh \left (d x + c\right )^{8} + 8 \, d \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{7} + d \sinh \left (d x + c\right )^{8} + 8 \, d \cosh \left (d x + c\right )^{6} + 4 \, {\left (7 \, d \cosh \left (d x + c\right )^{2} + 2 \, d\right )} \sinh \left (d x + c\right )^{6} + 4 \, {\left (14 \, d \cosh \left (d x + c\right )^{3} + 9 \, d \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{5} + 28 \, d \cosh \left (d x + c\right )^{4} + 2 \, {\left (35 \, d \cosh \left (d x + c\right )^{4} + 60 \, d \cosh \left (d x + c\right )^{2} + 14 \, d\right )} \sinh \left (d x + c\right )^{4} + 8 \, {\left (7 \, d \cosh \left (d x + c\right )^{5} + 15 \, d \cosh \left (d x + c\right )^{3} + 7 \, d \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{3} + 56 \, d \cosh \left (d x + c\right )^{2} + 4 \, {\left (7 \, d \cosh \left (d x + c\right )^{6} + 30 \, d \cosh \left (d x + c\right )^{4} + 42 \, d \cosh \left (d x + c\right )^{2} + 14 \, d\right )} \sinh \left (d x + c\right )^{2} + 4 \, {\left (2 \, d \cosh \left (d x + c\right )^{7} + 9 \, d \cosh \left (d x + c\right )^{5} + 14 \, d \cosh \left (d x + c\right )^{3} + 7 \, d \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right ) + 35 \, d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 260 vs.
\(2 (76) = 152\).
time = 0.48, size = 260, normalized size = 3.25 \begin {gather*} -\frac {2 \, {\left (35 \, b^{3} e^{\left (12 \, d x + 12 \, c\right )} + 210 \, a b^{2} e^{\left (10 \, d x + 10 \, c\right )} + 560 \, a^{2} b e^{\left (8 \, d x + 8 \, c\right )} - 210 \, a b^{2} e^{\left (8 \, d x + 8 \, c\right )} + 175 \, b^{3} e^{\left (8 \, d x + 8 \, c\right )} + 560 \, a^{3} e^{\left (6 \, d x + 6 \, c\right )} - 280 \, a^{2} b e^{\left (6 \, d x + 6 \, c\right )} + 420 \, a b^{2} e^{\left (6 \, d x + 6 \, c\right )} + 336 \, a^{3} e^{\left (4 \, d x + 4 \, c\right )} + 168 \, a^{2} b e^{\left (4 \, d x + 4 \, c\right )} - 84 \, a b^{2} e^{\left (4 \, d x + 4 \, c\right )} + 105 \, b^{3} e^{\left (4 \, d x + 4 \, c\right )} + 112 \, a^{3} e^{\left (2 \, d x + 2 \, c\right )} + 56 \, a^{2} b e^{\left (2 \, d x + 2 \, c\right )} + 42 \, a b^{2} e^{\left (2 \, d x + 2 \, c\right )} + 16 \, a^{3} + 8 \, a^{2} b + 6 \, a b^{2} + 5 \, b^{3}\right )}}{35 \, d {\left (e^{\left (2 \, d x + 2 \, c\right )} + 1\right )}^{7}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.87, size = 994, normalized size = 12.42 \begin {gather*} -\frac {\frac {2\,b^3}{7\,d}+\frac {8\,{\mathrm {e}}^{6\,c+6\,d\,x}\,\left (16\,a^3-24\,a^2\,b+18\,a\,b^2-5\,b^3\right )}{7\,d}+\frac {2\,b^3\,{\mathrm {e}}^{12\,c+12\,d\,x}}{7\,d}+\frac {6\,b\,{\mathrm {e}}^{4\,c+4\,d\,x}\,\left (16\,a^2-16\,a\,b+5\,b^2\right )}{7\,d}+\frac {6\,b\,{\mathrm {e}}^{8\,c+8\,d\,x}\,\left (16\,a^2-16\,a\,b+5\,b^2\right )}{7\,d}+\frac {12\,b^2\,{\mathrm {e}}^{2\,c+2\,d\,x}\,\left (2\,a-b\right )}{7\,d}+\frac {12\,b^2\,{\mathrm {e}}^{10\,c+10\,d\,x}\,\left (2\,a-b\right )}{7\,d}}{7\,{\mathrm {e}}^{2\,c+2\,d\,x}+21\,{\mathrm {e}}^{4\,c+4\,d\,x}+35\,{\mathrm {e}}^{6\,c+6\,d\,x}+35\,{\mathrm {e}}^{8\,c+8\,d\,x}+21\,{\mathrm {e}}^{10\,c+10\,d\,x}+7\,{\mathrm {e}}^{12\,c+12\,d\,x}+{\mathrm {e}}^{14\,c+14\,d\,x}+1}-\frac {\frac {4\,{\mathrm {e}}^{4\,c+4\,d\,x}\,\left (16\,a^3-24\,a^2\,b+18\,a\,b^2-5\,b^3\right )}{7\,d}+\frac {2\,b^3\,{\mathrm {e}}^{10\,c+10\,d\,x}}{7\,d}+\frac {2\,b^2\,\left (2\,a-b\right )}{7\,d}+\frac {2\,b\,{\mathrm {e}}^{2\,c+2\,d\,x}\,\left (16\,a^2-16\,a\,b+5\,b^2\right )}{7\,d}+\frac {4\,b\,{\mathrm {e}}^{6\,c+6\,d\,x}\,\left (16\,a^2-16\,a\,b+5\,b^2\right )}{7\,d}+\frac {10\,b^2\,{\mathrm {e}}^{8\,c+8\,d\,x}\,\left (2\,a-b\right )}{7\,d}}{6\,{\mathrm {e}}^{2\,c+2\,d\,x}+15\,{\mathrm {e}}^{4\,c+4\,d\,x}+20\,{\mathrm {e}}^{6\,c+6\,d\,x}+15\,{\mathrm {e}}^{8\,c+8\,d\,x}+6\,{\mathrm {e}}^{10\,c+10\,d\,x}+{\mathrm {e}}^{12\,c+12\,d\,x}+1}-\frac {\frac {2\,\left (16\,a^3-24\,a^2\,b+18\,a\,b^2-5\,b^3\right )}{35\,d}+\frac {2\,b^3\,{\mathrm {e}}^{6\,c+6\,d\,x}}{7\,d}+\frac {6\,b\,{\mathrm {e}}^{2\,c+2\,d\,x}\,\left (16\,a^2-16\,a\,b+5\,b^2\right )}{35\,d}+\frac {6\,b^2\,{\mathrm {e}}^{4\,c+4\,d\,x}\,\left (2\,a-b\right )}{7\,d}}{4\,{\mathrm {e}}^{2\,c+2\,d\,x}+6\,{\mathrm {e}}^{4\,c+4\,d\,x}+4\,{\mathrm {e}}^{6\,c+6\,d\,x}+{\mathrm {e}}^{8\,c+8\,d\,x}+1}-\frac {\frac {2\,b^3\,{\mathrm {e}}^{2\,c+2\,d\,x}}{7\,d}+\frac {2\,b^2\,\left (2\,a-b\right )}{7\,d}}{2\,{\mathrm {e}}^{2\,c+2\,d\,x}+{\mathrm {e}}^{4\,c+4\,d\,x}+1}-\frac {\frac {2\,b\,\left (16\,a^2-16\,a\,b+5\,b^2\right )}{35\,d}+\frac {8\,{\mathrm {e}}^{2\,c+2\,d\,x}\,\left (16\,a^3-24\,a^2\,b+18\,a\,b^2-5\,b^3\right )}{35\,d}+\frac {2\,b^3\,{\mathrm {e}}^{8\,c+8\,d\,x}}{7\,d}+\frac {12\,b\,{\mathrm {e}}^{4\,c+4\,d\,x}\,\left (16\,a^2-16\,a\,b+5\,b^2\right )}{35\,d}+\frac {8\,b^2\,{\mathrm {e}}^{6\,c+6\,d\,x}\,\left (2\,a-b\right )}{7\,d}}{5\,{\mathrm {e}}^{2\,c+2\,d\,x}+10\,{\mathrm {e}}^{4\,c+4\,d\,x}+10\,{\mathrm {e}}^{6\,c+6\,d\,x}+5\,{\mathrm {e}}^{8\,c+8\,d\,x}+{\mathrm {e}}^{10\,c+10\,d\,x}+1}-\frac {\frac {2\,b\,\left (16\,a^2-16\,a\,b+5\,b^2\right )}{35\,d}+\frac {2\,b^3\,{\mathrm {e}}^{4\,c+4\,d\,x}}{7\,d}+\frac {4\,b^2\,{\mathrm {e}}^{2\,c+2\,d\,x}\,\left (2\,a-b\right )}{7\,d}}{3\,{\mathrm {e}}^{2\,c+2\,d\,x}+3\,{\mathrm {e}}^{4\,c+4\,d\,x}+{\mathrm {e}}^{6\,c+6\,d\,x}+1}-\frac {2\,b^3}{7\,d\,\left ({\mathrm {e}}^{2\,c+2\,d\,x}+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________